package com.unbox.admin.hystrix;

import com.unbox.admin.entity.CLog;
import com.unbox.admin.fegin.LogFegin;
import com.unbox.common.response.UnboxResponse;
import com.unbox.common.table.UnBoxPage;
import org.springframework.stereotype.Component;
import java.util.List;

/**
 * <p>
 * <日志管理业务熔断配置
 * </p>
 *
 * @author 王振宇
 * @since 2021-04-08
 */
@Component
public class CLogHystrix implements LogFegin {

    @Override
    public UnboxResponse<UnBoxPage> getPageList(CLog log, Integer pageNo, Integer pageSize) {
        return new UnboxResponse
                .Builder<UnBoxPage>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<CLog> info(CLog log) {
        return new UnboxResponse
                .Builder<CLog>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<List<CLog>> idsLogs(List<Integer> ids) {
        return new UnboxResponse
                .Builder<List<CLog>>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> save(CLog log) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> batchSave(List<CLog> logs) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> update(CLog log) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> batchUpdate(List<CLog> logs) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> delete(CLog log) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }

    @Override
    public UnboxResponse<Boolean> deleteBatch(List<Integer> ids) {
        return new UnboxResponse
                .Builder<Boolean>()
                .serviceFail()
                .build();
    }
}
